{% extends "base.html" %}
{% load users_tags %}
{% load uni_form_tags %}

{% block title %} Search a  thought - {{ block.super }} {% endblock %}

{% block content %}
  <form method="GET" class="uniForm" action = "{% url search_users %}" >
    <input type="text" name="q" />
    <input type="submit" name="btn_search_user" value="search for users" />
  </form>

  {% if users %}
    {% for user in users %} 
      {% user user %}
    {% endfor %}
  {% else %}
      <p> No users available <p>
  {% endif %}

{% endblock %}
